package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 悠一木碧
 * 对应于 user 表的实体对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("user")
public class User implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private
    Integer id;

    @TableField(value = "user_portrait_path")
    private
    String portraitPath;

    @TableField(value = "user_username")
    private
    String username;

    @TableField(value = "user_password")
    private
    String password;

    @TableField(value = "user_email_address")
    private
    String emailAddress;

    @TableField(value = "user_introduction")
    private
    String introduction;

}
